package com.tongcheng.service.impl;

import com.tongcheng.mapper.ActivityMapper;
import com.tongcheng.pojo.Activity;
import com.tongcheng.pojo.Activity_coupons;
import com.tongcheng.pojo.Activity_share;
import com.tongcheng.service.Activitysevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class Activityseviceimpl implements Activitysevice {
    @Autowired
    private ActivityMapper activityMapper;
    @Override
    public int addActivity(Map map) {

        return activityMapper.addActivity(map);
    }

    @Override
    public int addActivity_coupons(Map map) {
        return activityMapper.addActivity_coupons(map);
    }

    @Override
    public int addActivity_share(Map map) {
        return activityMapper.addActivity_share(map);
    }

    @Override
    public int delActivity(Integer activity_id) {
        return activityMapper.delActivity(activity_id);
    }

    @Override
    public int updateActivity(Map map) {
        return activityMapper.updateActivity(map);
    }

    @Override
    public List<Map> queryActivity(Integer activity_id) {
        return activityMapper.queryActivity(activity_id);
    }




    @Override
    public List<Map> queryAllActivity() {
        return activityMapper.queryAllActivity();
    }


}
